
import { tutorStuAnalysisMobile,loadSysMessageScopeList } from "../../services/mentor"
export default {

  namespace: 'mentorIndexMoudule',

  state: {
    tutorStuAnalysiList:[],
    loadSysMessageList:[]
  },

  effects: {
    *tutorStuAnalysis({ payload }, { call, put }) {
      let nav = yield tutorStuAnalysisMobile(payload)
      yield put({
        type: 'tutorStuAnaly', payload: nav
      });
    },
    //通知公告
    *loadSysMessageScope({ payload }, { call, put }) {
      let nav = yield loadSysMessageScopeList(payload)
      yield put({
        type: 'loadSysMessage', payload: nav
      });
    },

  },

  reducers: {
    
    tutorStuAnaly(state, { payload }) {
      state.tutorStuAnalysiList = payload;
      return {
        ...state,
        ...payload,
      }
    },
    loadSysMessage(state, { payload }) {
      state.loadSysMessageList = payload;
      return {
        ...state,
        ...payload,
      }
    }
  },

};
